﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Katamino
{
    public class BitLogic
    {
        // Has been obsoleted by the BitTransposer with Cache
        public static void SetContext(Int32 h)
        {
            Transposed = new UInt64[32];

            for (UInt64 bit = 0; bit < 32; bit++)
                for (Int32 bitNum = 0; bitNum < 5; bitNum++)
                    Transposed[bit] |= ((bit >> bitNum) & 1) << (bitNum * h);
        }

        public static UInt64[] Transposed;

    }
}
